<?php
function deleteAccents($word)
{
	$badChars = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ';
	$modifiedChars = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr';
	$word = utf8_decode($word);
	$word = strtr($word, utf8_decode($badChars), $modifiedChars);
	$word = strtoupper($word);
	return utf8_encode($word);
}

/*function preventSQLInyectioin()
{
	// Evitamos la inyeccion SQL
	// Modificamos las variables pasadas por URL
	foreach( $_GET as $variable => $valor )
	{
		$_GET [ $variable ] = str_replace ( "'" , "'" , $_GET [ $variable ]);
	}
	// Modificamos las variables de formularios
	foreach( $_POST as $variable => $valor )
	{
		$_POST [ $variable ] = str_replace ( "'" , "'" , $_POST [ $variable ]);
	} 
}*/
?>
